program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

type
  first=class
  private
//    o:boolean;
//    x1,x2 :real;
  public
    function solve( a,b,c :integer):boolean;
//    function getx1:real;
//    function getx2:real;
  end;

var
 a,b,c:integer;
 j,h:real;
 p:first;

{ first }

function first.solve(a, b, c: integer):boolean;
var d :integer;
begin
   o:=true;
   solve:=true
   d := b*b-4*a*c;
   if (d<0) then
   begin
    o:=false;
    solve:=false;
    exit;
   end;

   x1:= (-b+sqrt(d))/2*a;
   x2:= (-b-sqrt(d))/2*a;
end;

function first.getx1:real;
begin
getx1:=x1;
end;

function first.getx2:real;
begin
getx2:=x2;
end;


begin
  p:=first.Create;

  readln(a,b,c);
  if(p.solve(a,b,c)) then
  begin
    j:=p.getx2;
    h:=P.getx1;
    writeln(j,h);
  end
  else

readln;
end.
